<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>什么值得买排行榜</title>
  <link rel="stylesheet" href="styles/icon.css">
  <link rel="stylesheet" href="styles/style.css">
  <style>
    /* 顶部导航栏样式 */
    .top {
      background-color: #e53935;
      color: white;
      padding: 15px 0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .top-title {
      text-align: center;
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 10px;
    }
    
    .tabs {
      display: flex;
      justify-content: center;
      margin-bottom: 10px;
    }
    
    .tab-item {
      padding: 8px 16px;
      border-radius: 20px;
      margin: 0 5px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .tab-active {
      background-color: white;
      color: #e53935;
    }
    
    .cats {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
    }
    
    .cat-item {
      padding: 6px 12px;
      border-radius: 16px;
      font-size: 12px;
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .cat-active {
      background-color: rgba(255,255,255,0.2);
    }
    
    /* 文章列表样式 */
    .article-list {
      margin-top: 20px;
      padding: 0 15px;
    }
    
    .article-item {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 15px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .article-header {
      display: flex;
      align-items: center;
      padding: 15px;
      background-color: #f8f9fa;
    }
    
    .rank-badge {
      width: 36px;
      height: 36px;
      background-color: #e53935;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      margin-right: 15px;
    }
    
    .article-title {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      line-height: 1.5;
    }
    
    .article-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    
    .article-footer {
      padding: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: #666;
    }
    
    .article-meta {
      display: flex;
      gap: 15px;
    }
    
    .article-tag {
      background-color: #e53935;
      color: white;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
    }
    
    /* 响应式设计 */
    @media (max-width: 768px) {
      .top-title {
        font-size: 16px;
      }
      
      .tab-item {
        padding: 6px 12px;
        font-size: 12px;
      }
      
      .cat-item {
        padding: 4px 8px;
        font-size: 10px;
      }
    }
  </style>
</head>
<body>
  <div class="page">
    <header class="top">
      <div class="top-title">排行榜</div>
      <nav class="tabs">
        <ul>
          <li class="tab-item tab-active">综合榜</li>
          <li class="tab-item">热卖榜</li>
          <li class="tab-item">热评榜</li>
          <li class="tab-item">热搜榜</li>
        </ul>
      </nav>
      <nav class="cats">
        <ul class="cat-list">
          <li class="cat-item cat-active">全部</li>
          <li class="cat-item">国内</li>
          <li class="cat-item">海淘</li>
          <li class="cat-item">时尚运动</li>
          <li class="cat-item">3C家电</li>
          <li class="cat-item">食品家居</li>
          <li class="cat-item">日百母婴</li>
          <li class="cat-item">出行游玩</li>
        </ul>
      </nav>
    </header>
    
    <!-- 文章列表 -->
    <div class="article-list">
      <div class="article-item">
        <div class="article-header">
          <div class="rank-badge">TOP1</div>
          <div class="article-title">安卓电视通过 KODI 看 IPTV</div>
        </div>
        <img src="imgs/sku-1.jpg" alt="KODI IPTV" class="article-image">
        <div class="article-footer">
          <div class="article-meta">
            <span><i class="iconfont icon-comment"></i> 105</span>
            <span><i class="iconfont icon-zhi"></i> 345</span>
          </div>
        </div>
      </div>
      
      <div class="article-item">
        <div class="article-header">
          <div class="rank-badge">TOP2</div>
          <div class="article-title">起跑线 26 期：5km跑步，你到了哪一级别？学会这几个跑步技巧，助你提升 PB</div>
        </div>
        <img src="imgs/sku-2.jpg" alt="跑步技巧" class="article-image">
        <div class="article-footer">
          <div class="article-meta">
            <span><i class="iconfont icon-comment"></i> 151</span>
            <span><i class="iconfont icon-zhi"></i> 132</span>
          </div>
          <div class="article-tag"># 跑者</div>
        </div>
      </div>
      
      <div class="article-item">
        <div class="article-header">
          <div class="rank-badge">TOP3</div>
          <div class="article-title">百度搜索新功能上线</div>
        </div>
        <img src="imgs/sku-3.jpg" alt="百度搜索" class="article-image">
        <div class="article-footer">
          <div class="article-meta">
            <span><i class="iconfont icon-comment"></i> 89</span>
            <span><i class="iconfont icon-zhi"></i> 210</span>
          </div>
          <div class="article-tag"># 搜索引擎</div>
        </div>
      </div>
    </div>
  </div>
</body>
</html>